import threading


x = 1


def func1():
    global x
    while x <= 100:
        print('func1:', x)
        x += 1


def func2():
    global x
    while x <= 100:
        print('func2', x)
        x += 1


t1 = threading.Thread(target=func1)
t2 = threading.Thread(target=func2)
t1.start()
t2.start()
